package com.scsj.supermarket.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.scsj.supermarket.R;

import java.util.List;


/**
 * 店铺自营优惠券
 */
public class ShopHomeCouponAdapter extends BaseQuickAdapter<Integer, BaseViewHolder> {

    public ShopHomeCouponAdapter(List data) {
        super(R.layout.item_shop_home_coupon, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, Integer item) {
        if(item == 3){
            helper.setBackgroundRes(R.id.bg_ll,R.mipmap.shop_detail_coupon_geted);
        }else {
            helper.setBackgroundRes(R.id.bg_ll,R.mipmap.shop_detail_coupon_get);
        }
    }

}

